import { BasicPageResult, BasicPageSearch } from './basicType';

export type ComputeTaskOverview = {
    cpu?: string;
    memory?: string;
    disk?: string;
    queueTask?: number;
    cpuUsed?: number;
    deadline?: string;
}

export type ComputeTask = {
    appType?: string;
    jobId?: string;
    jobName?: string;
    username?: string;
    param1?: string;
    startTime?: string;
    runningTime?: string;
    status?: string;
}

export type ComputeTaskPageResult = BasicPageResult & {
    records: ComputeTask[]; 
}

export type ComputeTaskPageSearch = BasicPageSearch & {
    status: string; // 1=进行中，2=完成
    startTime: string;
    endTime: string;
}